package com.link.base.base.approval.dao.mybatis.mapper;

import com.link.base.base.approval.model.ApprovalNode;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;
/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/8 15:44
 * @version 1.0
 */

public interface ApprovalNodeMapper extends BasicMapper<ApprovalNode> {

    /**
     * 查询审批流程的第n个节点
     * @param record
     * @return
     * @throws Exception
     */
    public List<ApprovalNode> queryOneApprovalNode(ApprovalNode record) throws Exception;

    /**
    * 根据头ID查询节点信息
    * @author Lizongting
    * @param  headId
    * @date 2020/6/11
    */
    List<ApprovalNode> queryNodesByApprovalId(Long headId) throws Exception;

    /**
    * 根据rowId批量删除节点 【拦截器中会拦截list，所以这里用ApprovalNoade作为参数】
    * @author Lizongting
    * @param  list
    * @return
    * @date 2020/6/11
    */
    void deleteByIds(List<Long> list) throws Exception;

}
